package com.marry.multidatasource.mapper.bd;

import com.marry.multidatasource.model.bd.Realestateright;
import org.apache.ibatis.annotations.Select;

/**
 * @author ml
 * @create 2018-01-09--17:03
 */
public interface RealestaterightMapper {
    @Select("select r.*,c.realestatecardnum from realestateright r,Realestatecard c where r.realestcardid=c.realestcardid and r.realestrightid=#{keyId} and r.rightstate=1")
    Realestateright selectRealestaterightById(String keyId);
}
